<!DOCTYPE html>
<html>
<head>
    {include file="common/meta" /}

    <style type="text/css">

    </style>
    <!--@formatter:off-->
    {if $background}
        <style type="text/css">
            body{
                background-image: url('{$background}');
            }
        </style>
    {/if}
    <!--@formatter:on-->
</head>
<body>
<div class="container">
    <div class="login-box" style="margin-top: 100px;">
        <div class="box no-shadow box-widget widget-user">
            <!-- Add the bg color to the header using any of the bg-* classes -->
            <div class="widget-user-header" style="height: 156px;background: url('__CDN__/assets/img/login-head.png'); background-size: cover; background-color: #899fe1;">
            </div>
            <div class="widget-user-image" style="top: 110px;">
                <img class="img-circle" src="__CDN__/assets/img/avatar.png" alt="User Avatar">
            </div>
            <div class="box-footer login-box-body">
                <form action="" method="post" id="login-form"  style="margin-top: 20px;">
                    <!--@AdminLoginFormBegin-->
                    <div id="errtips" class="hide"></div>
                    {:token()}
                    <div class="form-group has-feedback">
                        <span class="glyphicon glyphicon-user form-control-feedback" aria-hidden="true"></span>
                        <input type="text" class="form-control" id="pd-form-username" placeholder="{:__('Username')}" name="username" autocomplete="off" value="" data-rule="{:__('Username')}:required;username"/>
                    </div>

                    <div class="form-group has-feedback">
                        <span class="glyphicon glyphicon-lock form-control-feedback" aria-hidden="true"></span>
                        <input type="password" class="form-control" id="pd-form-password" placeholder="{:__('Password')}" name="password" autocomplete="off" value="" data-rule="{:__('Password')}:required;password"/>
                    </div>
                    <!--@CaptchaBegin-->
                    {if $Think.config.fastadmin.login_captcha}
                    <div class="form-group">
                        <div class="input-group">
                            <input type="text" name="captcha" class="form-control" placeholder="{:__('Captcha')}" data-rule="{:__('Captcha')}:required;length({$Think.config.captcha.length})" autocomplete="off"/>
                            <span class="input-group-addon" style="padding:0;border:none;cursor:pointer;">
                                    <img src="{:rtrim('__PUBLIC__', '/')}/index.php?s=/captcha" width="100" height="30" onclick="this.src = '{:rtrim('__PUBLIC__', '/')}/index.php?s=/captcha&r=' + Math.random();"/>
                                </span>
                        </div>
                    </div>
                    {/if}
                    <!--@CaptchaEnd-->
                    {if $keeyloginhours>0}
                    <div class="form-group checkbox">
                        <label class="inline" for="keeplogin" data-toggle="tooltip" title="{:__('The duration of the session is %s hours', $keeyloginhours)}">
                            <input type="checkbox" name="keeplogin" id="keeplogin" value="1"/>
                            {:__('Keep login')}
                        </label>
                    </div>
                    {/if}
                    <div class="form-group">
                        <button type="submit" class="btn btn-success btn-lg btn-block" style="background:#708eea;">{:__('Sign in')}</button>
                    </div>
                    <a href="register">{:__('Register a new membership')}</a>
                    <!--@AdminLoginFormEnd-->
                </form>
            </div>
        </div>
    </div>
</div>
{include file="common/script" /}
</body>
</html>
